<template>
<<<<<<< HEAD
  <div id="">
     <!-- <h2 id="myshoucang">我的收藏</h2> -->
      <van-nav-bar class="header"
            title="收藏"
             :fixed="true"  
             
        /> 
       
      <div id="box">
        <img id="img" src="../assets/weiqu.png" alt="">
        <p>你还没收藏任何东西呢！.！.！</p>
        <van-button round type="danger" id="btn" to="/home">去首页逛逛吧</van-button>
      </div>
      <div id="box02">
        <img id="img01" src="../assets/tuijian.png" alt="">
        <ul>
          <li v-for="(item,i) in list" :key=i>
            <h2>{{item.name}}</h2>
            <img :src="item.coverImg" alt="">
            <p>{{item.price}}</p>
=======
  <div id>
    <!-- <h2 id="myshoucang">我的收藏</h2> -->
    <van-nav-bar class="header" title="收藏" :fixed="true" />
>>>>>>> 583077d30d17804897ebf93f46c14dfc878e0905

    <div id="box">
      <img id="img" src="../assets/weiqu.png" alt />
      <p>你还没收藏任何东西呢！.！.！</p>
      <van-button round type="danger" id="btn" to="/home">去首页逛逛吧</van-button>
    </div>
    <div id="box02">
      <img id="img01" src="../assets/tuijian.png" alt />
      <router-link to="/detail">
        <van-card
        v-for="(item,i) in list"
        :key=i
        :title="item.pname"
        :desc="item.pdesc"        
        :price="item.pprice"
        :thumb="item.pimg"
      />
      </router-link>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: []
    };
  },
  mounted() {
    this.$api.getShopp({ uid: 88990 }).then(res => {
      console.log(res, 999);
      this.list = res.data;
    });
  },
  components: {}
};
</script>

<style scoped lang="scss">
#myshoucang {
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: pink;
  color: white;
}
#img {
  width: 110px;
  height: 75px;
  margin-top: 30px;
  margin-left: 90px;
  margin-bottom: 20px;
}
#box {
  text-align: center;
  border-bottom: 1px solid pink;
  margin-top: 50px;
}
#btn {
  height: 30px;
  line-height: 30px;
  margin: 10px 0;
}
#box p {
  color: gray;
  font-size: 18px;
}

#img01 {
  width: 100%;
}
#box02 {
  margin-bottom: 50px;
}
#box02 ul img {
  width: 100px;
}
.header {
  background: pink;
}
</style>
